from django.contrib import admin
from django.urls import path
from student import views
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    path('admin/', admin.site.urls),
    # 获取所有学生信息
    path('students/', views.get_students),

    path('students/query/', views.query_students),
    path('sno/check/', views.is_exsits_sno),
    path('student/add/', views.add_student),
    path('student/update/', views.update_student),
    path('student/delete/', views.delete_student),
    path('students/delete/', views.delete_students),
    path('upload/', views.upload),
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)